#ifndef AST_H
#define AST_H

#include <stdio.h>
#include "node.h"
#include "lex.yy.h"

class AST {
    public : 
	Node* rootNode;
	Node* currentNode;
	static AST* getInstance();
	
	void output(FILE* file);

	private:
	AST();
	static AST* ast_ins;
	void traversing(FILE* file, Node* node);
};

#endif // AST_H
